$(function () {
    init_count();
})

function init_count(){
    var session = $("#recordIdDetail").val();
    var url = ctx + "conversation/getRecordDetail";
    $.post(url,{cConvSession:session},function (r) {
       if(r.code===0){
           var data = r.data;
           var content = data.cConvCont;
           var jsons = eval('(' + content + ')');
           var cont = jsons.monthlyCount;
           var AllSchThisMonth = cont.AllSchThisMonth;
           var AllExThisMonth = cont.AllExThisMonth;
           var AllMyCusMonth = cont.AllMyCusMonth;
           var AllBigThisMonth = cont.AllBigThisMonth;
           $("#oncount").text(AllSchThisMonth);$("#excount").text(AllExThisMonth);$("#mycount").text(AllMyCusMonth);$("#bigcount").text(AllBigThisMonth);
       }else{
           $JuXue.n_danger(r.msg);
       }
    })
}